import request from "@/utlis/request";
//获取验证码图片
export const getYZMapi = (clientToken) =>
  request({
    url: `/api/user-service/user/imageCode/${clientToken}`,
    method: 'GET'
  })
//登录接口
export const loginapi = ({ name, password, yanzheng, num, loginType = 0 }) =>
  request({
    url: `/api/user-service/user/login`,
    method: 'POST',
    data: {
      loginName: name,
      password: password,
      code: yanzheng,
      clientToken: num,
      loginType
    }
  })